<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <!-- 模板 -->
    <p v-html="mes"></p>
    <p v-text="mes"></p>
    <p>{{ mes }}</p>
    <!-- 动态属性 -->
    <p v-bind:title="'哈哈哈'">123</p>

    <p :class="{active: true, active1: false}">嘻嘻嘻</p>
    

    <!-- 条件 -->
    <p v-if="false">heloo  !!!</p>
    <p v-show="false">world   !!!</p>

    <!-- 循环 -->
    <ul>
      <li v-for="(v, i) in list">{{ v }}-----{{ i }}</li>
    </ul>
  </div>

  <script>
    let vm = new Vue({
      // 挂载节点
      el: '#app',
      data: {
        mes: 'hello Vue !! ',
        list: ['a', 'b', 'c', 'd']
      }
    })
    // 挂载节点
    vm.$mount('#app')
  </script>
</body>

</html>